import request from "@/utils/request";

export function login(data) {
  return request({
    url: "/employee/login",
    method: "post",
    data,
  });
}

export function logout() {
  return request({
    url: "/employee/logout",
    method: "post",
  });
}

// 获取图片

// 人员的列表
export function employeeList(data) {
  return request({
    url: "/employee/page",
    method: "get",
    data,
  });
}

// 添加人员
export function createEmployee(data) {
  return request({
    url: "/employee",
    method: "post",
    data,
  });
}

// 编辑人员
export function editEmployee(data) {
  return request({
    url: "/employee",
    method: "put",
    data,
  });
}